import {get, post} from '../../util/http.js'
export default {
    // 代理商登录
    login (name, pwd) {
        return post('/agent/login', {
            username: name,
            password: pwd
        })
    },
    // 获取短信验证码
    getMessage (num) {
        return post('http://dhapi3.rz158.com/user/sendVerifyCode', {
            telephone: num
        })
    },
    // 注册账号
    signUp (num1, num2, pass) {
        return post('http://dhapi3.rz158.com/user/register_V3_2', {
            telephone: num1,
            verifyCode: num2, // 验证码
            password: pass,
            type: 2,
        })
    },
    // 验证码登录
    loginByTel (num1, num2) {
        return post('http://dhapi3.rz158.com/user/phoneLogin', {
            phone: num1,
            verificationCode: num2
        })
    },
}